package kr.co.handysoft.project.smartPolice.composite.detail;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeColumn;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormAttachment;

public class DetailStatusSystemInformationComposite extends Composite {

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public DetailStatusSystemInformationComposite(Composite parent,
			int style) {
		super(parent, style);
		setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
		setLayout(new FormLayout());
		
		Tree tree = new Tree(this, SWT.BORDER);
		FormData fd_tree = new FormData();
		fd_tree.bottom = new FormAttachment(100, -1);
		fd_tree.right = new FormAttachment(100, -1);
		fd_tree.top = new FormAttachment(0, 1);
		fd_tree.left = new FormAttachment(0, 1);
		tree.setLayoutData(fd_tree);
		tree.setLinesVisible(true);
		tree.setHeaderVisible(true);
		
		TreeColumn treeColumn = new TreeColumn(tree, SWT.NONE);
		treeColumn.setWidth(209);
		treeColumn.setText("\uAD6C\uBD84");
		
		TreeColumn treeColumn_1 = new TreeColumn(tree, SWT.NONE);
		treeColumn_1.setWidth(100);
		treeColumn_1.setText("\uAC12");
		
		Menu menu = new Menu(tree);
		tree.setMenu(menu);
		
		MenuItem menuItem = new MenuItem(menu, SWT.NONE);
		menuItem.setText("Reload");
		menuItem.setImage(SWTResourceManager.getImage(DetailStatusSystemInformationComposite.class, "/com/famfamfam/slik/icons/arrow_rotate_clockwise.png"));

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

}
